import request from '@/utils/request'

// 查询歌曲tag列表
export function listTrackTags(query) {
  return request({
    url: '/tracks/trackTags/list',
    method: 'get',
    params: query
  })
}

// 查询歌曲tag详细
export function getTrackTags(trackId) {
  return request({
    url: '/tracks/trackTags/' + trackId,
    method: 'get'
  })
}

// 新增歌曲tag
export function addTrackTags(data) {
  return request({
    url: '/tracks/trackTags',
    method: 'post',
    data: data
  })
}

// 修改歌曲tag
export function updateTrackTags(data) {
  return request({
    url: '/tracks/trackTags',
    method: 'put',
    data: data
  })
}

// 删除歌曲tag
export function delTrackTags(trackId) {
  return request({
    url: '/tracks/trackTags/' + trackId,
    method: 'delete'
  })
}
